package com.ljfiction.book.tools;

import android.content.Context;


import com.umeng.analytics.MobclickAgent;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Android on 2018/2/10.
 */

public class EventTool {
    /*
    * context:上下文
    * id：时间id
    * giveareward：具体页面
    * num:价钱数
    * */
    public static void putEvent(Context context,String giveareward ,String num,String id) {
       /* Map<String, String> attributes = new HashMap<String, String>();
        attributes.put("giveareward", "[请填写事件参数的值]");
        StatService.onEvent([请填写context], "1", "[请填写事件标签名]", [请填入事件触发次数], attributes);*/
        Map<String, String> attributes = new HashMap<String, String>();
        attributes.put(giveareward, num);
        MobclickAgent.onEventValue(context,id, attributes, 1);



    }


}
